package com.yzc.mihuyou.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.yzc.mihuyou.entity.Homes;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yzc.mihuyou.entity.Invitation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yzc
 * @since 2022-05-12
 */
@Mapper
public interface HomesMapper extends BaseMapper<Homes> {
    @Select("select b.* from \n" +
            "(select * from homes) a,(select * FROM invitation) b  ${ew.customSqlSegment}")
    List<Invitation> rower(@Param("page") IPage<Invitation> page, @Param(Constants.WRAPPER) Wrapper<Invitation> wrapper);
}
